package com.lagou.io;

import java.io.InputStream;

public class Resources {

    public static InputStream getResourceAsStream(String name) {
        return Resources.class.getClassLoader().getResourceAsStream(name);
    }

    public static Class<?> classForName(String name) throws ClassNotFoundException {
        return Class.forName(name, true, Resources.class.getClassLoader());
    }

}
